package com.bea.ftd.common.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.bea.ftd.common.entity.MsgOutConf;

@Repository
public interface MsgOutConfRepo extends JpaRepository<MsgOutConf,Long> {

    List<MsgOutConf>findAllByApiId(String apiId);

    @Modifying
    @Query("delete from MsgOutConf moc where moc.apiId = ?1")
	void deleteMsgOutByApiId(String apiId);
}
